import { createSSRApp } from 'vue'
//导入pinia
import { pinia } from '@/stores'
// 引入 uView UI
import uView from './components/vk-uview-ui'
import httpInterceptor from '@/common/http.interceptor'

import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)

  // 使用 pinia
  app.use(pinia)

  // 使用 uView UI
  app.use(uView)

  // http拦截器
  app.use(httpInterceptor)

  return {
    app,
  }
}
